package team.hyznrj.studentsys.dao.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import team.hyznrj.studentsys.entity.AccountInfo;

import java.util.List;

/**
 * @author ReMidDream
 * @date 2018-04-23 15:45
 **/
public interface AccountInfoRepository extends JpaRepository<AccountInfo,String> {

    AccountInfo findByUserAccount(String userAccount);

    Page<AccountInfo> findByUserId (String userId, Pageable pageable);

}
